package com.inifitness.tenant.core.system.model.vo;

import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
 * 组织视图
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@Schema(description = "组织视图对象")
@Data
public class BizOrgVO {

  @Schema(description = "组织ID")
  private Long id;

  @Schema(description = "父组织ID")
  private Long parentId;

  @Schema(description = "组织名称")
  private String name;

  @Schema(description = "排序")
  private Integer sort;

  @Schema(description = "状态(1:启用；0:禁用)")
  private Integer status;

  @Schema(description = "子组织")
  private List<BizOrgVO> children;

  @Schema(description = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
  private LocalDateTime createTime;
  @Schema(description = "修改时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
  private LocalDateTime updateTime;

}
